package com.glsx.auto;

/**
 * Created by linxy on 2017/4/16.
 */
public class Constant {
    public static final String SERVICE_SUFFIX = "Service";

    public static final String DEFAULT_TOP_PACKAGE_PREFIX = "com.glsx";

    public static final String I_SERVICE = "IService";
    public static final String SERVICE_EXCEPTION = "ServiceException";

    public static final String BASE_DAO = "BaseDao";
    public static final String I_SERVICE_IMPL = "IServiceImpl";

    public static final String HIBERNATE_SESSION_FACTORY_PACKAGE = "org.hibernate.SessionFactory";
    public static final String HIBERNATE_SESSION_PACKAGE = "org.hibernate.Session";

    public static final String SHOW_FULL_COLUMNS_FROM_TABLE = "SHOW FULL COLUMNS FROM %s";
    public static final String SELECT_ALL_FROM_TABLE_LIMIT_ONE = "SELECT * FROM %s LIMIT 1";

    public static final String FIELD = "field";
    public static final String COMMENT = "Comment";

    public static final String HEAD_STYLE_1 = "1";
    public static final String HEAD_STYLE_2 = "2";

    public static final String DUMP_TEMPLATE = "bin/dump.sh";
    public static final String RESTART_TEMPLATE = "bin/restart.sh";
    public static final String SERVER_TEMPLATE = "bin/server.sh";
    public static final String START_TEMPLATE = "bin/start.sh";
    public static final String STOP_TEMPLATE = "bin/stop.sh";

    public static final String LOG4J_TEMPLATE = "log4j.properties";
    public static final String SYSTEM_TEMPLATE = "system.properties";

    public static final String DUBBO_PROVIDER_TEMPLATE = "config/platform-dubbo-provider.xml";
    public static final String DUBBO_CONSUMER_TEMPLATE = "config/platform-dubbo-consumer.xml";
    public static final String DATASOURCE_TEMPLATE = "config/platform-datasource.xml";
    public static final String CONTEXT_TEMPLATE = "config/platform-context.xml";

    public static final String BASE_DAO_SRC_TEMPLATE = "src/BaseDao.src";
    public static final String ISERVICE_TEMPLATE = "src/IService.src";
    public static final String SERVICE_IMPL_TEMPLATE = "src/IServiceImpl.src";
    public static final String SERVICE_EXCEPTION_TEMPLATE = "src/ServiceException.src";

    public static final String PROJECT_NAME_PLACEHOLDER = "${project.name}";
    public static final String ROOT_PACKAGE_PLACEHOLDER = "${root.package}";
    public static final String SERVICE_IMPL_PACKAGE_PLACEHOLDER = "${service.impl.package}";

}
